home *** CD-ROM | disk | FTP | other *** search
- Path: mail2news.demon.co.uk!txwang
- From: Wang TianXing <gztxwang@public1.guangzhou.gd.cn>
- Newsgroups: comp.lang.c++
- Subject: Re: Headers containing 'class' as name in typedefinition.
- Date: Thu, 11 Apr 1996 13:03:53 GMT
- Message-ID: <199604111303.VAA11099@public1.guangzhou.gd.cn>
- X-NNTP-Posting-Host: txwang
- X-Newsreader: Forte Free Agent 1.0.82
- X-Mail2News-Path: public1.guangzhou.gd.cn!txwang
-
- On Wed, 10 Apr 1996 22:12:33 +0200, Mattias Arbin
- <d2arbin@dtek.chalmers.se> wrote:
-
- | I have a problem with a header file when programming with X. The file,
- | Raster.h included in the package Xew, contains a typedef with a name
- | containing 'class'. Which options do I have if I still wanna keep the
- | rest of the program in C++. Is it possible to separate compile the
- | functions using the header in question?
-
- | Very greatful for answer.
- | --
-
-
- 1. replace all occurences of 'class' in raster.h with SomeThingElse.
-
- 2. Or, use raster.h in this way:
-
- extern "C" {
- #define class SomeThingElse
- #include <raster.h>
- #undef SomeThingElse
- };
-
- Hope this helps.
-
- ---
- Wang TianXing
-
-
-